package com.aspose.cells;

class zcak extends zcdb {
   zcak(PivotTable var1) throws Exception {
      this.d = 513;
      byte var2 = 2;
      int var5;
      if (var1.getPivotTableStyleName() != null) {
         var5 = var2 + var1.getPivotTableStyleName().length() * 2 + 4;
      } else {
         var5 = var2 + 4;
      }

      this.c = new byte[var5];
      byte var3 = 0;
      if (var1.getShowPivotStyleLastColumn()) {
         var3 = (byte)(var3 | 2);
      }

      if (var1.getShowPivotStyleRowStripes()) {
         var3 = (byte)(var3 | 4);
      }

      if (var1.getShowPivotStyleColumnStripes()) {
         var3 = (byte)(var3 | 8);
      }

      if (var1.getShowPivotStyleRowHeader()) {
         var3 = (byte)(var3 | 16);
      }

      if (var1.getShowPivotStyleColumnHeader()) {
         var3 = (byte)(var3 | 32);
      }

      this.c[0] = var3;
      byte var4 = 2;
      if (var1.getPivotTableStyleName() != null) {
         zcch.a(this.c, var4, var1.getPivotTableStyleName());
      } else {
         System.arraycopy(com.aspose.cells.b.a.zc.a((int)-1), 0, this.c, var4, 4);
      }

   }
}
